import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Register from '@/components/Register'
import Login from '@/components/Login'
import Index from '@/components/Index'
import Userinfo from '@/components/Userinfo'
import User_center_site from '@/components/User_center_site'
import User_center_pass from '@/components/User_center_pass'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/index',
      name: 'Index',
      component: Index
    },
    {
      path: '/userinfo',
      name: 'Userinfo',
      component: Userinfo
    },
    {
      path: '/user_center_site',
      name: 'User_center_site',
      component: User_center_site
    },
    {
      path: '/user_center_pass',
      name: 'User_center_pass',
      component: User_center_pass
    },
  ]
})
